package csci5828.tasks.impl;

import csci5828.tasks.RequestId;
import csci5828.tasks.TaskResult;

public class TaskResultImpl<T> implements TaskResult<T> {
	
	private T result;
	private RequestId requestId;

	public TaskResultImpl(T result, RequestId requestId) {
		super();
		this.result = result;
		this.requestId = requestId;
	}

	@Override
	public T getResult() {
		return this.result;
	}

	@Override
	public RequestId getRequestId() {
		return this.requestId;
	}

}
